import { http } from '@/http/http'
import {
  IGetDepartmentListRequest,
  IGetDepartmentListResponse
} from './types/selectdepartment'

/**
 * 获取科室列表
 * @param params 查询参数
 */
export function getDepartmentList(params: IGetDepartmentListRequest = {}) {
  return http.get<IGetDepartmentListResponse>('/dep/all', params)
}